//
//  STSpaceSubIntroView.m
//  EnvironmentalProtection
//
//  Created by HCreater on 2018/11/9.
//  Copyright © 2018年 HCreater. All rights reserved.
//

#import "STSpaceSubIntroView.h"

@interface STSpaceSubIntroView()

/// 模型视图
@property (nonatomic, readonly, strong) STSpaceSubIntroViewModel* viewModel;

//IBOutlet
@property (weak, nonatomic) IBOutlet UILabel* introLabel;

@end

@implementation STSpaceSubIntroView

- (void)bindViewModel:(id)viewModel
{
    STSpaceSubIntroViewModel* vm = viewModel;
    
    if (!self.viewModel)
    {
        _viewModel = vm;
        
        [self _setup];
    }
    else
    {
    }
}

- (void)_setup
{
    @weakify(self)
    
    self.introLabel.text = self.viewModel.intro;
}

#pragma mark -- 跳转

/*
 // Only override drawRect: if you perform custom drawing.
 // An empty implementation adversely affects performance during animation.
 - (void)drawRect:(CGRect)rect {
 // Drawing code
 }
 */

@end
